//
//  JLFPhotoCollectionViewController.h
//  TestImageUpload
//
//  Created by he15his on 14/10/18.
//  Copyright (c) 2014年 ven. All rights reserved.
//

#import <JFBase/JFBase.h>
#import <AssetsLibrary/AssetsLibrary.h>

typedef NS_ENUM(NSInteger, JLFMediaType) {
    ///包括图片视频
    JLFMediaTypeAll     = 0,
    ///图片
    JLFMediaTypePhoto   = 1,
    ///视频
    JLFMediaTypeVideo   = 2,
};

@protocol SLPhotoCollectionViewControllerDelegate <NSObject>

/**
 *  选择完成回调
 *
 *  thumbImages:    缩略图数组。UIImage格式
 *  hdImages:       高清图数组。UIImage格式
 *  urls:           图片url。  NSUrl格式
 */
- (void)filishSelectThumbImages:(NSMutableArray *)thumbImages  urls:(NSMutableArray *)urls;

@end

/**
 *  相册多选视图
 */
@interface SLPhotoCollectionViewController : JFBaseViewController
//多媒体类型
@property (nonatomic, assign) JLFMediaType mediaType;
//列数,默认为3
@property (nonatomic, assign) NSUInteger numberOfRow;
//上次已经选择图片的url、thumbImages、hdImages(用于进入时把上次选择的标记)
@property (nonatomic, strong) NSMutableArray *urls;
@property (nonatomic, strong) NSMutableArray *thumbImages;

@property (nonatomic, strong) id<SLPhotoCollectionViewControllerDelegate>delegateCM;

//最大选择图片数，默认为9
@property (nonatomic, assign)  NSInteger maxImageNumber;

+ (UIImage *)thumbnailForAsset:(ALAsset *)asset maxPixelSize:(NSUInteger)size;

@end
